package com.jiyun.purse.mapper;

import com.jiyun.pojo.purse.Attestation;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface AttestationMapper {

    @Select("select * from user_attestation where user_id = #{userId} and is_delete = 0")
    Attestation findAttestation(Integer userId);

    @Insert("insert into user_attestation(user_id,path1,path2,is_delete) values (#{userId},#{path1},#{path2},#{isDelete})")
    int addAttestation(Attestation attestation);
}
